namespace XEAS.Framework.ShellLib
{
    using System;

    public class ShellAddRecent
    {
        public static void AddToList(string path)
        {
            ShellApi.SHAddToRecentDocs(3, path);
        }

        public static void ClearList()
        {
            ShellApi.SHAddToRecentDocs(1, IntPtr.Zero);
        }

        public enum ShellAddRecentDocs
        {
            SHARD_PATHA = 2,
            SHARD_PATHW = 3,
            SHARD_PIDL = 1
        }
    }
}

